<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/extras/spring-security">
<!--thymeleaf中  @{地址}  ${后端传递的属性值}-->
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
<title>教学评价系统-首页</title>
<link rel="shortcut icon" th:href="@{../images/favicon.ico}"/>
<link rel="stylesheet" th:href="@{/layui/css/layui.css}"/>
</head>
<body>
<div class="layui-layout layui-layout-admin">
  <div class="layui-header">
    <div class="layui-logo layui-hide-xs layui-bg-black"><img width="60px" height="40px" alt="logo" th:src="@{../images/logo.png}">&nbsp;&nbsp;教学评价系统</div>
    <!-- 头部区域（可配合layui 已有的水平导航） -->
    <ul class="layui-nav layui-layout-left">
      <!-- 移动端显示 -->
      <li class="layui-nav-item layui-show-xs-inline-block layui-hide-sm" lay-header-event="menuLeft">
        <i class="layui-icon layui-icon-spread-left"></i>
      </li>
      
      <li class="layui-nav-item layui-hide-xs layui-nav-itemed"><a th:href="@{/wellcom}" target="ifr">首页</a></li>
      <li class="layui-nav-item layui-hide-xs"><a th:href="@{/exe}" target="ifr">优秀教师</a></li>
      <li class="layui-nav-item layui-hide-xs"><a th:href="@{/about}" target="ifr">关于我们</a></li>
      <!-- <li class="layui-nav-item">
        <a th:href="@{javascript:;}">nav groups</a>
        <dl class="layui-nav-child">
          <dd><a href="">menu 11</a></dd>
          <dd><a href="">menu 22</a></dd>
          <dd><a href="">menu 33</a></dd>
        </dl>
      </li> -->
    </ul>
    <ul class="layui-nav layui-layout-right">
      <li class="layui-nav-item layui-hide layui-show-md-inline-block">
        <a href="javascript:;">
          <img th:src="@{//tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg}" class="layui-nav-img"/>
          <span th:text="${user}"></span>
        </a>
        <dl class="layui-nav-child">
          <dd><a th:href="@{/Teaching_evaluation_system/profile}" target="ifr">Your Profile</a></dd>
          <dd><a th:href="@{/register}" target="ifr">Reset Password</a></dd>
          <dd><a th:href="@{/Teaching_evaluation_system/loginout}">Sign out</a></dd>
        </dl>
      </li>
      <li class="layui-nav-item" lay-header-event="menuRight" lay-unselect="">
        <a href="javascript:;">
          <i class="layui-icon layui-icon-more-vertical"></i>
        </a>
      </li>
    </ul>
  </div>
  
  <div class="layui-side layui-bg-black">
    <div class="layui-side-scroll">
      <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
      <ul class="layui-nav layui-nav-tree" lay-filter="test">
        <li class="layui-nav-item ">
          <a class="" href="javascript:;">教师管理</a>
          <dl class="layui-nav-child">
          <!-- 此处的th:href="@{teachers}" 中的teacher，与AllController中的teachers相对应 -->
            <dd><a th:href="@{/teacher}" target="ifr">教师列表</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">学生管理</a>
          <dl class="layui-nav-child">
            <dd><a th:href="@{/student}" target="ifr">学生列表</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">教评管理</a>
          <dl class="layui-nav-child">
            <dd><a th:href="@{/result}" target="ifr">教评结果列表</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">留言管理</a>
          <dl class="layui-nav-child">
            <dd><a th:href="@{/message}" target="ifr">留言列表</a></dd>
          </dl>
        </li>
        <li class="layui-nav-item">
          <a href="javascript:;">课程管理</a>
          <dl class="layui-nav-child">
            <dd><a th:href="@{/course}" target="ifr">课程列表</a></dd>
          </dl>
        </li>
      </ul>
    </div>
  </div>
  
  <div class="layui-body">
    <!-- 内容主体区域 -->
    <!-- 嵌套iframe面板 -->
        <iframe name="ifr" style="height: 100%;width: 100%" th:src="@{/wellcom}"></iframe>
  </div>
  
  <div class="layui-footer">
    <!-- 底部固定区域 -->
    底部固定区域
  </div>
</div>
<script th:src="@{/layui/layui.js}"></script>
<script th:src="@{/js/jquery-3.6.0.min.js}"></script>
<script>
//JS 
layui.use(['element', 'layer', 'util'], function(){
  var element = layui.element
  ,layer = layui.layer
  ,util = layui.util
  ,$ = layui.$;
  
  //头部事件
  util.event('lay-header-event', {
    //左侧菜单事件
    menuLeft: function(othis){
      layer.msg('展开左侧菜单的操作', {icon: 0});
    }
    ,menuRight: function(){
      layer.open({
        type: 1
        ,content: '<div style="padding: 15px;">你想干嘛？盯着你呢！机密文件不能分享</div>'
        ,area: ['260px', '100%']
        ,offset: 'rt' //右上角
        ,anim: 5
        ,shadeClose: true
      });
    }
  });
  
});

</script>
</body>
</html>